package com.cy.ppj.model.ao.user;

import com.cy.ppj.comm.constant.RegexContants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

/**
 * @description: 用户注册
 * @author: Ocean
 * @create: 2018-07-19 19:37
 **/
@Data
@ApiModel("用户注册")
public class UserRegisterAO {

    @ApiModelProperty(value = "注册手机号码", example = "13800138001", required = true)
    @NotEmpty(message = "请输入注册手机号码")
    @Pattern(regexp = RegexContants.MOBILE, message = "手机号码格式不正确")
    private String mobile;

    @ApiModelProperty(value = "注册密码", example = "123456a", required = true)
    @NotEmpty(message = "请输入注册密码")
    @Pattern(regexp = RegexContants.PASSWORD, message = "密码格式不正确")
    private String password;

    @ApiModelProperty(value = "手机验证码", example = "6666", required = true)
    @NotEmpty(message = "请输入手机验证码")
    private String smsCode;

    @ApiModelProperty("推荐码")
    private String recommendCode;

    @ApiModelProperty("公司名称")
    private String companyName;

}
